package com.neuedu.spring.service;


import com.neuedu.spring.dao.IUserDao;
import com.neuedu.spring.dao.UserDaoImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 项目    ： spring-java1
 * 创建时间 ：2020/3/19  16:20 19
 * author  ：张金山
 * site    :   https://jshand.gitee.io
 * 描述     : service层的实现类
 *
 */
@Service("userService")
public class UserServiceImpl implements IUserService {

    IUserDao userDao = new UserDaoImpl() ;

//    public UserServiceImpl() {
//    }

    public UserServiceImpl(IUserDao userDao) {
        this.userDao = userDao;
    }


    @Override
    public List queryUser() {
        userDao.selectUser();
        return null;
    }
}